home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / Transport Independent Speech / SpokenSerialApp / Language.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-20  |  1.3 KB  |  45 lines  |  [TEXT/CWIE]

  1. #ifndef __LANGUAGE__
  2. #define __LANGUAGE__
  3.  
  4. #include <Resources.h>
  5. #include <Speech.h>
  6. #include <String.h>
  7. #include <TextUtils.h>
  8.  
  9. #ifndef __STRUCT__
  10. #include "Struct.h"
  11. #endif
  12.  
  13. #ifndef __SPEAKINGERRORS__
  14. #include "Speaking_Errors.h"
  15. #endif
  16.  
  17. #define kBaseResID        128
  18. #define kLanguageRes    'STR#'
  19. #define kTREEType        'LANG'
  20.  
  21. OSErr        MakeNewLanguage            (SpeechInfoPtr theSpeechInfo);
  22. OSErr        AddStringsToLanguage    (SpeechInfoPtr theSpeechInfo,
  23.                                     LanguageModelListPtr currentLang,
  24.                                     short resID);
  25. OSErr        ReadInLanguages            (SpeechInfoPtr theSpeechInfo);
  26. OSErr        GetTREERes                (TREEResourcePtr *TREEResPtr,
  27.                                     short resID,
  28.                                     short index,
  29.                                     short *onlySubPath);
  30. OSErr        RegisterCommand            (SRLanguageModel theModel, long flags, unsigned long type, long ID, const char* word);
  31. OSErr        GetFlagsFromTREE        (long *theFlags,
  32.                                     TREEResourcePtr theTREEResPtr);
  33. OSErr        GetTypeFromTREE            (OSType *theType,
  34.                                     TREEResourcePtr theTREEResPtr);
  35. OSErr        GetIDFromTREE            (long *theID,
  36.                                     TREEResourcePtr theTREEResPtr);
  37. OSErr        GetStringFromTREE        (Str255 theString,
  38.                                     TREEResourcePtr theTREEResPtr);
  39. OSErr        InitSpeechRecognition    (SpeechInfoPtr theSpeechInfo);
  40. OSErr        OpenSpeechRecognition    (SpeechInfoPtr theSpeechInfo);
  41. OSErr        ConfigureRecognition    (SpeechInfoPtr theSpeechInfo);
  42. OSErr        GetNewRecognizer        (SpeechInfoPtr theSpeechInfo);
  43.  
  44. #endif
  45.